<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: GCKernelLibrary Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Compute Library
   &#160;<span id="projectnumber">18.05</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.xhtml"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.xhtml"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.xhtml"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="inherits.xhtml"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.xhtml"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classarm__compute_1_1_g_c_kernel_library.xhtml','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">GCKernelLibrary Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml" title="GCKernelLibrary class. ">GCKernelLibrary</a> class.  
 <a href="classarm__compute_1_1_g_c_kernel_library.xhtml#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_g_c_kernel_library_8h_source.xhtml">GCKernelLibrary.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a86bdc674d5c99b1ed9e11ff56567467e"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a86bdc674d5c99b1ed9e11ff56567467e">GCKernelLibrary</a> (const <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a> &amp;)=delete</td></tr>
<tr class="memdesc:a86bdc674d5c99b1ed9e11ff56567467e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copied.  <a href="#a86bdc674d5c99b1ed9e11ff56567467e">More...</a><br /></td></tr>
<tr class="separator:a86bdc674d5c99b1ed9e11ff56567467e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a10dbce17f04221f2d1fcd3c0a91b4d69"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a10dbce17f04221f2d1fcd3c0a91b4d69">operator=</a> (const <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a> &amp;)=delete</td></tr>
<tr class="memdesc:a10dbce17f04221f2d1fcd3c0a91b4d69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Prevent instances of this class from being copied.  <a href="#a10dbce17f04221f2d1fcd3c0a91b4d69">More...</a><br /></td></tr>
<tr class="separator:a10dbce17f04221f2d1fcd3c0a91b4d69"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe24625d55f2fb35da7e293e5e28d483"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#abe24625d55f2fb35da7e293e5e28d483">init</a> (std::string shader_path=&quot;./&quot;, EGLDisplay dpy=EGL_NO_DISPLAY, EGLContext ctx=EGL_NO_CONTEXT)</td></tr>
<tr class="memdesc:abe24625d55f2fb35da7e293e5e28d483"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialises the kernel library.  <a href="#abe24625d55f2fb35da7e293e5e28d483">More...</a><br /></td></tr>
<tr class="separator:abe24625d55f2fb35da7e293e5e28d483"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d39c8fd9605c241b797dcbd9d3cc474"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a1d39c8fd9605c241b797dcbd9d3cc474">set_shader_path</a> (const std::string &amp;shader_path)</td></tr>
<tr class="memdesc:a1d39c8fd9605c241b797dcbd9d3cc474"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the path that the shaders reside in.  <a href="#a1d39c8fd9605c241b797dcbd9d3cc474">More...</a><br /></td></tr>
<tr class="separator:a1d39c8fd9605c241b797dcbd9d3cc474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adad9a34e26a1a1b6574057981a1f7bb3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#adad9a34e26a1a1b6574057981a1f7bb3">set_context</a> (EGLDisplay dpy, EGLContext ctx)</td></tr>
<tr class="memdesc:adad9a34e26a1a1b6574057981a1f7bb3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets display and context to create kernel.  <a href="#adad9a34e26a1a1b6574057981a1f7bb3">More...</a><br /></td></tr>
<tr class="separator:adad9a34e26a1a1b6574057981a1f7bb3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c9232d786719d0387c11c36af18f9d0"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classarm__compute_1_1_g_c_kernel.xhtml">GCKernel</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a3c9232d786719d0387c11c36af18f9d0">create_kernel</a> (const std::string &amp;shader_name, const StringSet &amp;build_options_set={}) const </td></tr>
<tr class="memdesc:a3c9232d786719d0387c11c36af18f9d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a kernel from the kernel library.  <a href="#a3c9232d786719d0387c11c36af18f9d0">More...</a><br /></td></tr>
<tr class="separator:a3c9232d786719d0387c11c36af18f9d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7c0b2aa80e920344936e8e7dbaa73e43"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a7c0b2aa80e920344936e8e7dbaa73e43">save_binary</a> ()</td></tr>
<tr class="memdesc:a7c0b2aa80e920344936e8e7dbaa73e43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Serializes and saves programs to a binary.  <a href="#a7c0b2aa80e920344936e8e7dbaa73e43">More...</a><br /></td></tr>
<tr class="separator:a7c0b2aa80e920344936e8e7dbaa73e43"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a389a543ae040ca6bf6b57fd6215f154b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a389a543ae040ca6bf6b57fd6215f154b">load_binary</a> ()</td></tr>
<tr class="memdesc:a389a543ae040ca6bf6b57fd6215f154b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Load serialized binary with all the programs.  <a href="#a389a543ae040ca6bf6b57fd6215f154b">More...</a><br /></td></tr>
<tr class="separator:a389a543ae040ca6bf6b57fd6215f154b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a374c8804afa3425411f78ec3b164f267"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a374c8804afa3425411f78ec3b164f267">setup_dummy_fbo</a> ()</td></tr>
<tr class="memdesc:a374c8804afa3425411f78ec3b164f267"><td class="mdescLeft">&#160;</td><td class="mdescRight">Setup a dummy fbo to workaround an issue on Galaxy S8.  <a href="#a374c8804afa3425411f78ec3b164f267">More...</a><br /></td></tr>
<tr class="separator:a374c8804afa3425411f78ec3b164f267"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:abda5f31afe32726ca4dd36d9a480d3f2"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml#abda5f31afe32726ca4dd36d9a480d3f2">get</a> ()</td></tr>
<tr class="memdesc:abda5f31afe32726ca4dd36d9a480d3f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the static instance of <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a>.  <a href="#abda5f31afe32726ca4dd36d9a480d3f2">More...</a><br /></td></tr>
<tr class="separator:abda5f31afe32726ca4dd36d9a480d3f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml" title="GCKernelLibrary class. ">GCKernelLibrary</a> class. </p>

<p>Definition at line <a class="el" href="_g_c_kernel_library_8h_source.xhtml#l00187">187</a> of file <a class="el" href="_g_c_kernel_library_8h_source.xhtml">GCKernelLibrary.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a86bdc674d5c99b1ed9e11ff56567467e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prevent instances of this class from being copied. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a3c9232d786719d0387c11c36af18f9d0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classarm__compute_1_1_g_c_kernel.xhtml">GCKernel</a> create_kernel </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>shader_name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const StringSet &amp;&#160;</td>
          <td class="paramname"><em>build_options_set</em> = <code>{}</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Creates a kernel from the kernel library. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">shader_name</td><td>Shader name. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">build_options_set</td><td>Shader build options as a set.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The created kernel. </dd></dl>

</div>
</div>
<a class="anchor" id="abda5f31afe32726ca4dd36d9a480d3f2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a>&amp; get </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Get the static instance of <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a>. </p>
<dl class="section return"><dt>Returns</dt><dd>The static instance of <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml" title="GCKernelLibrary class. ">GCKernelLibrary</a>. </dd></dl>

</div>
</div>
<a class="anchor" id="abe24625d55f2fb35da7e293e5e28d483"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void init </td>
          <td>(</td>
          <td class="paramtype">std::string&#160;</td>
          <td class="paramname"><em>shader_path</em> = <code>&quot;./&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">EGLDisplay&#160;</td>
          <td class="paramname"><em>dpy</em> = <code>EGL_NO_DISPLAY</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">EGLContext&#160;</td>
          <td class="paramname"><em>ctx</em> = <code>EGL_NO_CONTEXT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Initialises the kernel library. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">shader_path</td><td>(Optional) Path of the directory from which shader sources are loaded. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">dpy</td><td>(Optional) EGLdisplay set by external application. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">ctx</td><td>(Optional) EGLContext set by external application. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_g_c_kernel_library_8h_source.xhtml#l00212">212</a> of file <a class="el" href="_g_c_kernel_library_8h_source.xhtml">GCKernelLibrary.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    {</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        _shader_path = std::move(shader_path);</div><div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;</div><div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;        _display = dpy;</div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        _context = ctx;</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        eglMakeCurrent(_display, EGL_NO_SURFACE, EGL_NO_SURFACE, _context);</div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;        <a class="code" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a374c8804afa3425411f78ec3b164f267">setup_dummy_fbo</a>();</div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    }</div><div class="ttc" id="classarm__compute_1_1_g_c_kernel_library_xhtml_a374c8804afa3425411f78ec3b164f267"><div class="ttname"><a href="classarm__compute_1_1_g_c_kernel_library.xhtml#a374c8804afa3425411f78ec3b164f267">arm_compute::GCKernelLibrary::setup_dummy_fbo</a></div><div class="ttdeci">void setup_dummy_fbo()</div><div class="ttdoc">Setup a dummy fbo to workaround an issue on Galaxy S8. </div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a389a543ae040ca6bf6b57fd6215f154b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void load_binary </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Load serialized binary with all the programs. </p>

</div>
</div>
<a class="anchor" id="a10dbce17f04221f2d1fcd3c0a91b4d69"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a>&amp; operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a> &amp;&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">delete</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Prevent instances of this class from being copied. </p>

</div>
</div>
<a class="anchor" id="a7c0b2aa80e920344936e8e7dbaa73e43"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void save_binary </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Serializes and saves programs to a binary. </p>

</div>
</div>
<a class="anchor" id="adad9a34e26a1a1b6574057981a1f7bb3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void set_context </td>
          <td>(</td>
          <td class="paramtype">EGLDisplay&#160;</td>
          <td class="paramname"><em>dpy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">EGLContext&#160;</td>
          <td class="paramname"><em>ctx</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets display and context to create kernel. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">dpy</td><td>EGLdisplay set by external application. </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">ctx</td><td>EGLContext set by external application. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_g_c_kernel_library_8h_source.xhtml#l00236">236</a> of file <a class="el" href="_g_c_kernel_library_8h_source.xhtml">GCKernelLibrary.h</a>.</p>

<p>References <a class="el" href="arm__compute_2core_2_helpers_8h_source.xhtml#l00086">arm_compute::create_kernel()</a>.</p>
<div class="fragment"><div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;    {</div><div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;        _display = dpy;</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;        _context = ctx;</div><div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;</div><div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;        eglMakeCurrent(dpy, EGL_NO_SURFACE, EGL_NO_SURFACE, ctx);</div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;        <a class="code" href="classarm__compute_1_1_g_c_kernel_library.xhtml#a374c8804afa3425411f78ec3b164f267">setup_dummy_fbo</a>();</div><div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;    };</div><div class="ttc" id="classarm__compute_1_1_g_c_kernel_library_xhtml_a374c8804afa3425411f78ec3b164f267"><div class="ttname"><a href="classarm__compute_1_1_g_c_kernel_library.xhtml#a374c8804afa3425411f78ec3b164f267">arm_compute::GCKernelLibrary::setup_dummy_fbo</a></div><div class="ttdeci">void setup_dummy_fbo()</div><div class="ttdoc">Setup a dummy fbo to workaround an issue on Galaxy S8. </div></div>
</div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a1d39c8fd9605c241b797dcbd9d3cc474"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void set_shader_path </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>shader_path</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Sets the path that the shaders reside in. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">shader_path</td><td>Path of the shader. </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="_g_c_kernel_library_8h_source.xhtml#l00227">227</a> of file <a class="el" href="_g_c_kernel_library_8h_source.xhtml">GCKernelLibrary.h</a>.</p>
<div class="fragment"><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;    {</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;        _shader_path = shader_path;</div><div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;    };</div></div><!-- fragment -->
</div>
</div>
<a class="anchor" id="a374c8804afa3425411f78ec3b164f267"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void setup_dummy_fbo </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Setup a dummy fbo to workaround an issue on Galaxy S8. </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>arm_compute/core/GLES_COMPUTE/<a class="el" href="_g_c_kernel_library_8h_source.xhtml">GCKernelLibrary.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacearm__compute.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="classarm__compute_1_1_g_c_kernel_library.xhtml">GCKernelLibrary</a></li>
    <li class="footer">Generated on Wed May 23 2018 11:36:41 for Compute Library by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
